// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

@use '../../../m24/vars/lib' as *;

.m24-c-ar-better-internet-title {
    font-size: $text-title-lg;
    margin-bottom: $spacer-sm;
}

.m24-c-ar-better-internet-body {
    font-weight: 500;
    font-size: $text-body-lg;
}

.m24-c-ar-better-internet-list-item {
    border-bottom: 2px solid $m24-color-black;
    display: block;

    &:first-child {
        border-top: 2px solid $m24-color-black;
    }
}

.m24-c-ar-better-internet-list-link {
    box-sizing: border-box;
    color: $m24-color-black;
    display: block;
    font-size: $text-body-lg;
    font-weight: 600;
    padding: $spacer-md calc(40px + $spacer-lg) $spacer-md 0;
    position: relative;
    text-decoration: none;
    width: 100%;

    &::after {
        background-image: url('/media/protocol/img/icons/arrow-right.svg');
        background-position: center left;
        background-repeat: no-repeat;
        background-size: 18px auto;
        bottom: 0;
        content: '';
        display: block;
        position: absolute;
        right: $spacer-sm;
        top: 0;
        transition-duration: $fast;
        transition-property: right;
        transition-timing-function: $bezier;
        width: 40px;
    }

    &:link,
    &:visited {
        color: $m24-color-black;
    }

    &:hover,
    &:active,
    &:focus {
        &::after {
            right: 0;
        }
    }
}

@media #{$mq-md} {
    .m24-c-ar-better-internet {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: $grid-gutter;
    }
}
